#include <iostream>
#include <stdlib.h>
using namespace std;

int main(int argc, char ** argv)
{
  int i, n , k = 0;
  bool yes = 1;
  do
  {
    std::cout << "Vvedite stepen chisla 2: " << std::endl;
    std::cin >> n;
  } while (n < 0);
  while(n > 1 && yes)
  {
    if(n % 2 == 0 && n != 1)
      yes = 0;
    else
    {
      n /= 2;
      k++;
    }
  }
  if(yes)
    std::cout << "rezyltat: " << k << std::endl;
  else
    std::cout << "Chislone yavlyaetsa stepeniy chisla 2." << std::endl;
  system("PAUSE >> NULL");
  return 0;
}
